
<div ng-controller="z-emailAddressSet-c" z-loading is-loading="viewModel.isLoading">
	<div viewstack class="carousel slide" data-ride="carousel">
		<div class="carousel-inner" role="listbox">
			<div class="item active">
				<div class="row">
                    <div class="col-lg-12 heading">
                        <ul id="crumb" class="breadcrumb">
	                       <li>
		                        <i class="im-home"></i>
		                        <a href="index.html">首页</a>
	                        </li>
	                        <li ng-repeat="menu in viewModel.menuList">
	                        	<i class="{{menu.icons}}" ng-if="$index+1!=viewModel.menuList.length"></i>
	                        	<i class="en-arrow-right7" ng-if="$index+1==viewModel.menuList.length"></i>
	                        	{{menu.label}}
	                        </li>
                        </ul>
                    </div>
                </div>
                <div class="outlet">
                	<div class="panel-body">
					</div>
                </div>
                <div class="container">
                    <div class="panel panel-primary toggle">
                        <div class="panel-heading">
                            <h4 class="panel-title"><i class="im-wand"></i> 邮箱地址配置</h4>
                        <div class="panel-controls panel-controls-hide" style="display: none;"><a href="#" class="toggle panel-minimize"><i class="im-minus"></i></a></div></div>
                        <div class="panel-body" style="display: block;">
                            <form class="form-horizontal form-wizard ui-formwizard" role="form" name="editForm">
                                <div class="step ui-formwizard-content" id="first2" style="display: block;">
                                    <span data-icon="ec-user" data-text="Personal information"></span>
                                    <div class="form-group">
                                        <label class="col-lg-3 col-xs-3 col-sm-3 col-md-3 control-label">邮箱地址：</label>
                                        <div class="col-lg-5 col-xs-5 col-sm-5 col-md-5"  ng-class="{ 'has-error' : editForm.emailAddress.$dirty && editForm.emailAddress.$invalid}">
										   <input name="emailAddress" class="form-control  ui-wizard-conten" ng-model="viewModel.emailAddress" 
										   ng-pattern="/[\w!#$%&'*+/=?^_`{|}~-]+(?:\.[\w!#$%&'*+/=?^_`{|}~-]+)*@(?:[\w](?:[\w-]*[\w])?\.)+[\w](?:[\w-]*[\w])?/" maxLength="45" required>
										</div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-lg-3 col-xs-3 col-sm-3 col-md-3 control-label">邮箱密码：</label>
                                        <div class="col-lg-5 col-xs-5 col-sm-5 col-md-5"  ng-class="{ 'has-error' : editForm.emailPassword.$dirty && editForm.emailPassword.$invalid}">
										   <input name="emailPassword" type="password" class="form-control  ui-wizard-conten" ng-model="viewModel.emailPassword" maxLength="45" required>
										</div>
                                        <button type="button" 
												class="btn btn-primary" 
												ng-click="viewModel.save()">保存</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
                
                <div class="container">
                    <!-- col-lg-6 start here -->
                    <div class="panel panel-primary toggle" id="spr_4">
                        <!-- Start .panel -->
                        <div class="panel-heading">
                            <h4 class="panel-title"><i class="im-wand"></i> 重新读取考勤数据</h4>
                        <div class="panel-controls panel-controls-hide" style="display: none;"><a href="#" class="toggle panel-minimize"><i class="im-minus"></i></a></div></div>
                        <div class="panel-body" style="display: block;">
                        	 <form class="form-horizontal form-wizard ui-formwizard" role="form">
	                             <div class="step ui-formwizard-content" id="first4" style="display: block;">
	                                 <span data-icon="ec-user" data-text="Personal information"></span>
	                                 <div class="form-group">
	                                      <label class="col-lg-3 col-xs-3 col-sm-3 col-md-3 control-label">考勤日期：</label>
		                                  <div class="col-lg-5 col-xs-5 col-sm-5 col-md-5">
		                                      <div class="col-sm-7 col-md-7 form-input">
		                                          <div class="input-group" ng-class="{ 'has-error' : form.reportStratDate.$invalid && !form.reportStratDate.$pristine }">
		                                              <input name="startDate"
		                                                     ng-model="viewModel.startDate"	                                                 
		                                                     class="form-control datetime-picker"
		                                                     type="text"
		                                                     autofocus="autofocus"
		                                                     maxLength="10"
		                                                     ng-click="viewModel.startDateOpen($event)"
		                                                     z-datepicker-popup="{{viewModel.format}}"
		                                                     is-open="viewModel.startDateOpened"
		                                                     datepicker-options="viewModel.dateOptions"
		                                                     close-text="Close"
		                                                     readonly
		                                                     tabIndex="8"><!--required-->
		                                              <span class="input-group-addon cursorPointer" ng-click="viewModel.startDateOpen($event)"><i class="fa-calendar"></i></span>
		                                          </div>
		                                      </div>
		                                  </div>
		                                  <div>
		                                      <button type="button" class="btn btn-primary" ng-click="viewModel.saveAttendaceAuto()">执行</button>	                                       
										  </div>						
	                                 </div>
	                             </div>
	                          </form>   
                        </div>
                    </div>
                </div>  
                
                	<div class="container">
	                    <div class="panel panel-primary toggle" id="spr_5">
	                        <!-- Start .panel -->
	                        <div class="panel-heading">
	                            <h4 class="panel-title"><i class="im-wand"></i> 重新生成班次</h4>
	                        <div class="panel-controls panel-controls-hide" style="display: none;"><a href="#" class="toggle panel-minimize"><i class="im-minus"></i></a></div></div>
	                        <div class="panel-body" style="display: block;">
	                        	<form class="form-horizontal form-wizard ui-formwizard" role="form">
	                               <div class="step ui-formwizard-content" id="first5" style="display: block;">
	                                   <span data-icon="ec-user" data-text="Personal information"></span>
	                                   <div class="form-group">
	                                       <label class="col-lg-3 col-xs-3 col-sm-3 col-md-3 control-label">提示信息：</label>
	                                      <div class="col-lg-5 col-xs-5 col-sm-5 col-md-5" >
										  <!-- <input name="version" class="form-control  ui-wizard-conten" ng-model="viewModel.version" maxLength="45" required>-->
											 <div style="color:red; margin-top: 7px;">根据法定节假日，矫正班次</div>
										</div> 
	                                       <button type="button" class="btn btn-primary" ng-click="viewModel.saveSchedulDayKeyAuto()">生成</button>
										</div>
	                                </div>
	                            </form>   
	                        </div>
                        </div>
                    </div>
		                <div class="container">
		                    <!-- col-lg-6 start here -->
		                    <div class="panel panel-primary toggle" id="spr_6">
		                        <!-- Start .panel -->
		                        <div class="panel-heading">
		                            <h4 class="panel-title"><i class="im-wand"></i> 获取主数据系统组织架构信息</h4>
		                        <div class="panel-controls panel-controls-hide" style="display: none;"><a href="#" class="toggle panel-minimize"><i class="im-minus"></i></a></div></div>
		                        <div class="panel-body" style="display: block;">
		                        	<form class="form-horizontal form-wizard ui-formwizard" role="form" name="requestForm">
		                              <div class="step ui-formwizard-content" id="first6" style="display: block;">
		                                  <span data-icon="ec-user" data-text="Personal information"></span>
		                                  <div class="form-group">
		                                      <label class="col-lg-3 col-xs-3 col-sm-3 col-md-3 control-label">提示信息：</label>
		                                      <div class="col-lg-5 col-xs-5 col-sm-5 col-md-5" >		  
												 <div style="color:red; margin-top: 7px;">数据请求需要一定时间，请勿进行其他操作...</div>
											  </div> 
		                                      <button type="button" class="btn btn-primary" ng-click="viewModel.requestMaindataVersion()" style="display: none;">请求版本数据</button>
		                                       <!-- onclick="javascript:{this.disabled=true;}" -->
		                                      <!-- <button type="button"  ng-disabled="viewModel.tokenCount==1" class="btn btn-primary" ng-click="viewModel.requestMaindata()" >请求全量数据</button> -->
		                                      <button type="button"  class="btn btn-primary" ng-click="viewModel.requestMaindata()" >请求全量数据</button>
		                                      <!-- <button type="button"  class="btn btn-primary" ng-click="viewModel.requestMaindataNew()" >请求增量数据</button> -->
										  </div>
										  <div class="form-group">
		                                      <label class="col-lg-3 col-xs-3 col-sm-3 col-md-3 control-label">增量日期：</label>
			                                  <div class="col-lg-5 col-xs-5 col-sm-5 col-md-5">
			                                      <div class="col-sm-7 col-md-7 form-input">
			                                          <div class="input-group" ng-class="{ 'has-error' : requestForm.date.$invalid && !requestForm.date.$pristine }">
			                                              <input name="date"
			                                                     ng-model="viewModel.date"	                                                 
			                                                     class="form-control datetime-picker"
			                                                     type="text"
			                                                     autofocus="autofocus"
			                                                     maxLength="10"
			                                                     ng-click="viewModel.dateOpen($event)"
			                                                     z-datepicker-popup="{{viewModel.format}}"
			                                                     is-open="viewModel.dateOpened"
			                                                     datepicker-options="viewModel.dateOptions"
			                                                     close-text="Close"
			                                                     readonly
			                                                     tabIndex="8"><!--required-->
			                                              <span class="input-group-addon cursorPointer" ng-click="viewModel.dateOpen($event)"><i class="fa-calendar"></i></span>
			                                          </div>
			                                      </div>
			                                      <div class="col-sm-3 col-md-3 form-input">
													  	<div class="input-group" ng-class="{ 'has-error' : requestForm.time.$dirty && requestForm.time.$invalid}">
															<input id="time" 
																   name="time" 
														 		   class="form-control" 
														 		   ng-model="editModel.time"
														 		   ng-pattern="/^([01][0-9]|2[0-3]):([0-5][0-9])$/"
														 		   maxLength="5"
														 		   ng-model='timepickerTest' 
														 		   ng-time
														 		   required>  
														</div>	   	   
												  </div>
			                                  </div>
			                                  <div>
			                                      <button type="button"  class="btn btn-primary" ng-click="viewModel.requestMaindataNew()" >请求增量数据</button>                   
											  </div>						
		                                 </div>
		                              </div>
		                            </form>  
		                         </div>
		                    </div>
		               </div>
	                <div>
                </div>                              
			</div>
		</div>
	</div>
</div>